import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import java.io.Serializable;

/**
 * Created by Notebook on 05.10.14.
 */
@ManagedBean
@SessionScoped
public class Sum implements Serializable
{
    private int firstArg;

    private int secondArg;

    private int sum;



    public int getFirstArg()
    {
        return firstArg;
    }

    public void setFirstArg(int firstArg)
    {
        this.firstArg = firstArg;
    }

    public int getSecondArg() {
        return secondArg;
    }

    public void setSecondArg(int secondArg) {
        this.secondArg = secondArg;
    }

    public int getSum() {
        return sum;
    }

    public void setSum(int sum) {
        this.sum = sum;
    }

    public void add()
    {
        sum = firstArg + secondArg;
    }
}